/**
 * 
 */
package com.edu.lawdoc.api.controller.assistor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.jfinal.plugin.activerecord.Page;

/**
 * @author xiao.hu
 *
 */
public class ObjectAssistor {

	public static final <T> List<T> emptyList() {
		return new ArrayList<T>(0);
	}
	
	public static final <T> Page<T> emptyPage() {
		return new Page<T> (emptyList(), 1, 1, 1, 0); //必须jdk1.8才支持
	}
	
	public static final Map<String, Object> emptyMap() {
		return new HashMap<String, Object>(1);
	}
}
